package dice.sinanya.entity;

import java.util.Objects;

public class EntityRoleLock {
    String qqId;
    String groupId;

    public EntityRoleLock() {
    }

    public EntityRoleLock(String qqId, String groupId) {
        this.qqId = qqId;
        this.groupId = groupId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof EntityRoleLock)) return false;
        EntityRoleLock that = (EntityRoleLock) o;
        return qqId.equals(that.qqId) &&
                groupId.equals(that.groupId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(qqId, groupId);
    }

    public String getQqId() {
        return qqId;
    }

    public void setQqId(String qqId) {
        this.qqId = qqId;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }
}
